from django.urls import path

from . import views

app_name = 'apis' # 增加命名空间

urlpatterns = [
    # ex: /apis/
    path('', views.index, name='index'),
    # ex: /apis/<int:sleep_time>/sleep
    path('<int:sleep_time>/sleep', views.sleep, name='sleep'),
    # ex: /apis/uploadFile
    path('uploadFile', views.upload_file, name='uploadFile'),
    # ex: /apis/uploadFileTest
    path('uploadFileTest', views.upload_file_test, name='uploadFileTest'),
    # ex: /apis/download
    path('download', views.download, name='download'),
    # ex: /apis/downloadFile
    path('downloadFile', views.downloadFile, name='downloadFile'),
]


